<template>
	<view>
		<view style="margin-top: 20rpx;">
			<rich-text :nodes="detail.content"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail:{},
			}
		},
		onLoad() {
			this.getData()
		},
		methods: {
			getData(){
				let self = this;
				uni.showLoading({
					title: '加载中...'
				});
				self._get('news.pages/index/id/1', {
					id:1
				}, res => {
					self.detail = res.data;
					uni.hideLoading();
				});
			},
		}
	}
</script>

<style>
</style>
